package com.acoreful.sample.web.controller;

import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/test")
public class TestController {
	@RequestMapping
	public String index(){
		return "test/dashboard";
	}
	
	@RequestMapping("/dashboard")
	public String dashboard(){
		return "test/dashboard";
	}
	
	
	@RequestMapping("/tojsp/{path}")
	public String tojsp(String path){
		return StringUtils.defaultString(path, "test/dashboard");
	}
}
